<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@include file="/WEB-INF/pages/common/common.jsp"%>
<title>项目管理系统</title>
<link rel="stylesheet" href="${ctx}resources/css/tree.css" />
<script type="text/javascript" src="${ctx}resources/js/chili-1.7.pack.js"></script>
<script type="text/javascript" src="${ctx}resources/js/jquery.easing.js"></script>
<script type="text/javascript" src="${ctx}resources/js/jquery.dimensions.js"></script>
<script type="text/javascript" src="${ctx}resources/js/jquery.accordion.js"></script>
</head>
<script type="text/javascript">
jQuery().ready(function(){
	jQuery('#navigation').accordion({
		header: '.head',
		navigation1: true, 
		event: 'click',
		fillSpace: true,
		animated: 'bounceslide'
	});
});
	</script>
<body style="border: 0px; margin: 0px">
	<div id="main">
		<ul id="navigation">
			<c:forEach items="${res}" var="resource">
				<c:if test="${resource.parent==null}">
					<li><a class="head" href="#">${resource.rescname}</a>
						<ul>
							<c:forEach items="${resource.children}" var="child">
								<c:if test="${child.parent!=null&&child.parent.id==resource.id}">
									<li><a href="${ctx}${child.url}" target="I1">${child.rescname}</a>
									</li>
								</c:if>
							</c:forEach>
						</ul></li>
				</c:if>
			</c:forEach>
		</ul>
	</div>
</body>
</html>